package com.xjtu.duansheli.service;

import com.xjtu.duansheli.entity.CategoriesInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.duansheli.entity.ProductInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 漩涡鸣人
 * @since 2020-10-24
 */
public interface CategoriesInfoService extends IService<CategoriesInfo> {
    public List<CategoriesInfo> getAllCategories(int current, int size);
    public CategoriesInfo getCategoryByid(Long cid);
    public int addCategory(CategoriesInfo category);
    public int updateCategory(CategoriesInfo category);
    public int deleteCategory(Long cid);
    public int getTotal();
}
